package com.bckj.freshnow.common.constant;

public class TradeOrderConstants {

    /*------------------- 订单事件 --------------------*/

    /**
     * 账单支付完成
     */
    public static final int EVENT_PAY_SUCCESS = 2;
    /**
     * 用户发起取消订单或订单超时取消
     */
    public static final int EVENT_CANCEL_ORDER = 3;
    /**
     * 订单超过售后期
     */
    public static final int EVENT_OVER_AFTER_SALE = 4;
    /**
     * 订单全部退款
     */
    public static final int EVENT_FULL_REFUND = 5;
    /**
     * 订单存在进行中的售后单
     */
    public static final int EVENT_HAVE_AFTER_SALE = 6;
    /**
     * 售后单完成
     */
    public static final int EVENT_AFTER_SALE_SUCCESS = 7;


    /*------------------- 订单状态 --------------------*/

    /**
     * 初始化
     */
    public static final int STATUS_INIT = 0;
    /**
     * 待支付
     */
    public static final int STATUS_PAY_ONLINE = 100;
    /**
     * 待使用
     */
    public static final int STATUS_WAITING_USE = 200;
    /**
     * 已完成
     */
    public static final int STATUS_FINISHED = 300;
    /**
     * 已取消
     */
    public static final int STATUS_CANCEL = 400;
    /**
     * 交易关闭
     */
    public static final int STATUS_TRADE_CLOSE = 500;
    /**
     * 售后中
     */
    public static final int STATUS_AFTER_SALE = 600;

    /*------------------- 订单类型 --------------------*/

    /**
     * 普通
     */
    public static final int TRADE_ORDER_TYPE_NORMAL = 0;
    /**
     * 团购
     */
    public static final int TRADE_ORDER_TYPE_GROUP_BUYING = 1;
    /**
     * 补价
     */
    public static final int TRADE_ORDER_TYPE_PREMIUM = 2;


    /*------------------- 账单状态 --------------------*/

    /**
     * 待支付
     */
    public static final int TRADE_BILL_STATUS_PENDING_PAYMENT = 1;
    /**
     * 已支付
     */
    public static final int TRADE_BILL_STATUS_PAID = 2;
    /**
     * 支付关闭
     */
    public static final int TRADE_BILL_STATUS_PAYMENT_CLOSED = 3;
    /**
     * 部分退款
     */
    public static final int TRADE_BILL_STATUS_PARTIAL_REFUND = 4;
    /**
     * 全部退款
     */
    public static final int TRADE_BILL_STATUS_FULL_REFUND = 5;

    /*------------------- 账单类型 --------------------*/

    /**
     * 先付
     */
    public static final int TRADE_BILL_TYPE_PREPAY = 1;


    /*------------------- 账单流水状态 --------------------*/

    /**
     * 待支付
     */
    public static final int TRADE_BILL_STATEMENT_STATUS_PENDING_PAYMENT = 1;
    /**
     * 已支付
     */
    public static final int TRADE_BILL_STATEMENT_STATUS_PAID = 2;
    /**
     * 支付关闭
     */
    public static final int TRADE_BILL_STATEMENT_STATUS_PAYMENT_CLOSED = 3;


    /*------------------- 账单流水类型 --------------------*/

    /**
     * 支付
     */
    public static final int TRADE_BILL_STATEMENT_TYPE_PAYMENT = 1;
    /**
     * 优惠
     */
    public static final int TRADE_BILL_STATEMENT_TYPE_DISCOUNT = 2;
    /**
     * 退款
     */
    public static final int TRADE_BILL_STATEMENT_TYPE_REFUND = 3;

    /*-------------------- 账单流水支付方式 --------------------*/

    /**
     * 线上
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_ONLINE = 1;
    /**
     * 月结
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_MONTHLY = 2;
    /**
     * 用户身份
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_USER_IDENTITY = 3;
    /**
     * 优惠券
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_COUPON = 4;
    /**
     * 积分
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_POINTS = 5;
    /**
     * 活动
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_ACTIVITY = 6;
    /**
     * 会员卡
     */
    public static final int TRADE_BILL_STATEMENT_PAYMENT_METHOD_MEMBER_CARD = 7;

    /**
     * 业务ID 客户端
     */
    public static final String BIZ_ID_CUSTOM = "BIZ_ID_CUSTOM";
}
